﻿@model S4Store.Models.StoreListModel
@{
    Layout = null;
    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
@if (CurrentUser.Position == S4Store.Domain.Position.SystemManager)
{
<div style=" width:100%; background:#E5EDEF"  ratio="#30">
    <div style=" padding:0 10px">
    <form action="@Url.Action(Model.Action, Model.Controller)">
     <table>
        <tr>
            <td>
        <select class="storechooser" name="StoreId">
            @foreach (var store in Model.Stores)
            {
                <option  value="@store.Id" @if (Model.Store != null && store.Id == Model.Store.Id)
                                           {<text>selected="selected"</text>}>@store.Name</option>
            }
        </select>
        </td>
        <td class="plusitem">@Html.Raw(String.IsNullOrEmpty(Model.PlusItem) ? "" : Model.PlusItem)</td>
    </tr>
    </table>
    </form>
    </div>
</div>
}